<template>
  <div style="height: 120px; width: 20px;">
    <ScrollBar :max="100" :value.sync="curValue" :rangeValue="20"></ScrollBar>
  </div>
</template>

<script>
import ScrollBar from './ScrollBar.vue';
export default {
    components: {
        ScrollBar
    },
    data(){
        return{
            curValue: 10
        }
    },
    watch:{
        value(val){
            console.log(val)
        }
    },
    methods:{
        updateValue(val){
            console.log(val)
        }
    }
}
</script>

<style>

</style>